//
//  ViewForSearchFooter.m
//  ProjectA
//
//  Created by dllo on 16/3/8.
//  Copyright © 2016年 刘旺辉. All rights reserved.
//

#import "ViewForSearchFooter.h"
#import "AppMacro.h"
@implementation ViewForSearchFooter

- (void)dealloc {
    
    [_label release];
    [super dealloc];
    
}
- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        self.label = [[UILabel alloc] init];
        [self.contentView addSubview:self.label];
        [_label release];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.label.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
    self.label.center = self.contentView.center;
    self.label.textAlignment = NSTextAlignmentCenter;
    
    if (ISNIGHT) {
        self.label.textColor = [UIColor whiteColor];
    } else {
        self.label.textColor = [UIColor blackColor];
    }
}


@end
